package com.meilai.project.entity.business.sale;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.meilai.project.dto.business.contract.ProxyMediaDetailReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author xchen
 * @since 2022-03-19
 */
@Data
@TableName("bill_sale_proxy")
@ApiModel(value = "BillSaleProxy对象", description = "")
public class BillSaleProxy {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键 ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "销售单id")
    private Long bill_sale_id;

    @ApiModelProperty(value = "代理公司名称")
    private String proxy_company_name;

    @ApiModelProperty(value = "代理金额")
    private BigDecimal proxy_amount;

    @ApiModelProperty("代理情况明细")
    @TableField(exist = false)
    private List<ProxyMediaDetailReq> proxyMediaDetailList;


    public static final String BILL_SALE_ID = "bill_sale_id";

    public static final String TYPE = "type";

    public static final String MEDIA_NAME = "media_name";

    public static final String MEDIA_COUNT = "media_count";

}
